package com.company.user.vo;

import com.company.common.enums.ProjectConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 返回的json数据对象
 */

@ApiModel(value = "RespJson", description = "返回的json数据对象")
public class RespJson<T extends BaseData> {

    @ApiModelProperty(value = "系统返回码，200：成功；500：失败；401：未登录", example = "200")
    private int code = ProjectConstants.RESULT_OK;

    @ApiModelProperty(value = "系统状态", example = "success/fail")
    private String status = ProjectConstants.RESULT_STATUS_SUCCESS;

    @ApiModelProperty(value = "业务返回数据")
    private T data;


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


}